package day3.demo6_link;

import java.lang.invoke.VarHandle;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        LinkedHashMap lm = new LinkedHashMap();
        lm.put("a3","333");
        lm.put("a1","123");
        lm.put("a2","22");

        Set set = lm.entrySet();
        for (Object o : set) {
            Map.Entry<String, String> o1 = (Map.Entry<String, String>) o;
            System.out.println(o1.getKey() + ":" + o1.getValue());
        }
    }
}
